package com.tongcheng.feign;

import com.tongcheng.ResultDate;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value = "tongcheng-client-coupons")
public interface UserCouponsseviceFeign {
    @RequestMapping(value = "/coupons/userReceiveCoupons",method = RequestMethod.GET,produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate userReceiveCoupons(@RequestParam(value ="userId") Integer userId, @RequestParam(value ="coupons_id") Integer coupons_id);


    @RequestMapping(value = "/coupons/userSeeCoupons",method = RequestMethod.GET,produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)

     ResultDate userSeeCoupons(Integer userId);

    @RequestMapping(value = "/coupons/merchantSeeCoupons",method = RequestMethod.GET,produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)

     ResultDate merchantSeeCoupons(Long merchant_id);
    @RequestMapping(value = "/coupons/merchantReceiveCoupons",method = RequestMethod.GET,produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)

     ResultDate merchantReceiveCoupons(@RequestParam(value = "merchant_id")Long merchant_id,@RequestParam(value = "coupons_id") Integer coupons_id);


}
